ACPI/cpuidle: remove unused "power" field from Cx state data
authorJan Beulich <jbeulich@suse.com>
Fri, 2 Nov 2012 15:14:11 +0000 (16:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Nov 2012 15:14:11 +0000 (16:14 +0100)
It has never been used for anything, and Linux 3.7 doesn't propagate
this information anymore.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/cpu/mwait-idle.c
xen/include/xen/cpuidle.h

index 3112e2874d1506bc91d27898c3a69b185d3215e8..8cb151418431dfd5ed97c5cbccd7a5c5ee98f805 100644 (file)
@@ -935,7 +935,6 @@ static void set_cx(
     }
 
     cx->latency  = xen_cx->latency;
-    cx->power    = xen_cx->power;
     
     cx->target_residency = cx->latency * latency_factor;
     if ( cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2 )
index f8bbf0f2314b784b1de4accb19bf3e14cdbee068..da3079f52db2a4826cce1f3b1e8a27c04c278350 100644 (file)
@@ -96,7 +96,6 @@ static const struct cpuidle_state {
        char            name[16];
        unsigned int    flags;
        unsigned int    exit_latency; /* in US */
-       int             power_usage; /* in mW */
        unsigned int    target_residency; /* in US */
 } *cpuidle_state_table;
 
@@ -479,7 +478,6 @@ static int mwait_idle_cpu_init(struct notifier_block *nfb,
                cx->type = cstate;
                cx->address = get_driver_data(cstate);
                cx->entry_method = ACPI_CSTATE_EM_FFH;
-               cx->power = cpuidle_state_table[cstate].power_usage;
                cx->latency = cpuidle_state_table[cstate].exit_latency;
                cx->target_residency =
                        cpuidle_state_table[cstate].target_residency;
index 37bcd1cc384f9cf8a6f97bfd7624b1183036c147..b7b9e8c72bec79367352847ac28abc2b46ded2d3 100644 (file)
@@ -46,7 +46,6 @@ struct acpi_processor_cx
     u32 address;
     u32 latency;
     u32 target_residency;
-    u32 power;
     u32 usage;
     u64 time;
 };